package com.nave.princesslife.places;

import android.view.MotionEvent;

import com.nave.princesslife.baseboard.icons.Closet;
import com.nave.princesslife.baseboard.icons.Lamp;
import com.nave.princesslife.baseboard.icons.Pet;


public class Room_Place extends BaseLevel {

	private Lamp lamp;
	private Closet closet;
	private Pet pet;
	
	public Room_Place(int w, int h){
		
		lamp = Lamp.getInstance();
		pet = Pet.getInstance();
		closet = Closet.getInstance();
		
		lamp.setup(w, h);
		pet.setup(w, h);
		closet.setup(w, h);
	}
	
	@Override
	public void draw() {
		
		pet.draw();
		closet.draw();
		lamp.draw();
	}

	@Override
	public void touchEvent(MotionEvent me, int x, int y) {
		// TODO Auto-generated method stub
		
		lamp.touchEvent(me, x, y);
		pet.touchEvent(me, x, y);
		closet.touchEvent(me, x, y);
	}

}
